Namespaces

Functions

string
__(string $string, array $placeholders = [])

Shortcut for translator translate method

at line 445
abort(int $code, string|null $message = null)

Stops the code execution and sends an HTTP response code

at line 399
abort_if(bool $condition, int $code)

Stops the code execution and sends an HTTP response code if $condition

at line 430
array
array_to_object(array $data)

Converts an array to object

at line 119
mixed
config(string $key = "", mixed $default = null)

Get a value from a confing in the "config" folder

at line 283
array
content_of(string $path)

Get contents of a directory

at line 14
csrf_input()

Prints the csrf input

at line 159
string|null
csrf_token()

Get current csrf token

at line 45
array
dom_element_attributes(DOMElement $element)

Gets the attributes of a DOMElement

at line 456
mixed
dot_notation_array(string $key, array $array, mixed $default = null)

Access items of an array using dot notation

at line 132
string
generate_html_attributes(array $attributes)

Converts an array to attributes string

at line 186
array
generate_select_options(mixed $collection, string $text_index = "title", string $id_index = "id")

Creates a basic array for $options agument of select views

at line 208
string
get_absolute_path(string $path)

This works like realpath but works even if the file doesn't exist

at line 332
string
get_contents(string $url)

file_get_contents with simulated user agent

at line 52
string
get_json_error(array $array)

Gets the last json error as readable string

at line 489
array
kvsort(array $array, $key, $order = SORT_ASC)

Sorts array by key value kv = key value

at line 476
string
main_path(string $path = "")

Get an absolute path from "main" folder

at line 368
method_input(string $method)

Prints the method input

at line 168
string
minify_css(string $css)

Minify the given CSS

at line 252
string
minify_html(string $text)

Minify the given HTML

at line 233
string
minify_js(string $js)

Minify the given JS

at line 267
mixed
module_config(string $module, string $key = "", mixed $default = null)

Get a value from a module config

at line 305
module_view(string $filename, array $args = [])

Helper for \App\System\MVC\View\View::module

at line 22
array
object_to_array(mixed $item)

Converts an object to array

at line 102
pretty(mixed $var)

Prints a detailed description of $var

at line 34
string
project_folder(string $path = "")

Build a path from ABSOLUTE|RELATIVE/projects/PROJECT_FOLDER/$path

at line 321
project_view(string $view_path, array $args = [])

Shortcut to get a project view

at line 34
string
projects_path(string $path = "")

Get an absolute path from "projects" folder

at line 390
string
rand_letters_str(int $length = 10)

Generates an only letters string of $lenght length

at line 539
string
rand_str(int $length = 40)

Generates a random string of $lengh length

at line 524
recursive_copy(string $source, string $dest)

Makes a recursive copy of the contents of source path to destination path

at line 83
RedirectResponse
redirect(string $url, array|null $data = [], int|null $code = 302)

No description

at line 27
void
remove_spaces(string $subject, string $replace = "")

Remove all spaces from given string

at line 554
string
root_path(string $path = "")

Get an absolute path from root folder

at line 357
router()

Get the singleton instance of the Router.

at line 19
string
system_path(string $path = "")

Get an absolute path from "System" folder

at line 379
string
url(string $name, array $parameters = [])

Generate a URL for a named route.

at line 10
Validator
validator(...$args)

Shortcut for validator

at line 510
view(string $filename, array $args = [])

Helper for \App\System\MVC\View\View::get

at line 10